Part Number Hot Search : 
CMLD6001 H78L06AA 70N1T R1020 MAX17 IRLP3803 DB104 CCLHM120
Product Description
Full Text Search
 

To Download USB245 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 USB245
Res. [1] Res. [2] Res. [3] SD7 [4] SD6 [5] SD5 [6] SD4 [7] SD3 [8] SD2 [9] SD1 [10] SD0 [11] GND [12] [24] VCC [23] FILTER_VCC [22] USB_VCC [21] DM [20] DP [19] GND [18] TXE# [17] WRITE [16] READ# [15] RESET# [14] RXF# [13] RCCLK Res. SD(0..7) RCCLK RXF# RESET# READ# WRITE TXE# DP DM USB_VCC FILTER_VCC VCC GND
Pinout
Information
Reserved, Unconnected. Do not use. Data Bus. Driven when READ# is asserted. Data inputs when WRITE is asserted. Output of the onboard RC Timer. Active low output. When asserted, receive data is available, and can be read from FIFO. Active Low output. Remains low for 140msec after power-up, then goes high. Active Low input. When low, the device drives the current receive FIFO data onto SD0-SD7. Input that Clocks Data at SD0-SD7 into transmit FIFO on a High-to-Low transition. Active Low Output. When asserted, signifies transmit FIFO space is available. USB Plus Data Signal. USB Minus Data Signal. Input to onboard 5volt power filter. Output of onboard 5volt power filter. 5 Volt power input. Ground.
* * * * *
USB ver1.1 compatible device with a 384 byte transmit FIFO and 128 Byte receive FIFO. Works with FTDI's Virtual Com Port (VCP) and D2XX Drivers for Microsoft Windows. Small Size: Surface Mount Technology allows the device to fit in standard 24 pin DIP socket. Preprogrammed 93C46 EEPROM with unique USB device information. Easy to use 8-bit microcontrollermicroprocessor interface with FIFO status lines
The USB245 is small, easy to use device with all necessary timing circuits, and power filtering built in. Each contains a preprogrammed EEPROM which holds the device and vendor ID codes. The 8-bit data bus easily connects to processor data buses. The two control bus lines (READ# and WRITE) direct data flow from the device, while two status lines (TXE# and RXF#) give information about the state of the internal transmit and receive FIFOs. The status lines can also be used as interrupt sources for the processor. The onboard RESET# line is routed externally and can be used to drive other circuits. The device can be wired to derive and source power from the USB bus, or alternatively have power sourced from the processor interface.
All Trademarks are property of their respective owners
(c) 2002 Xylotex www.xylotex.com
Timing Information
FIFO READ CYCLE
T5 RXF# T1 RD# T3 D0-D7 T1 T2 T3 T4 T5 T6 RD Active Pulse Width RD to RD Pre-Charge Time RD Active to Valid Data Valid Data Hold from RD inactive RD Inactive to RXF# RXF# Inactive after RD cycle 10 5 80 25 Min 50 50 30 Max Unit ns ns ns ns ns ns T4 T2 T6
FIFO WRITE CYCLE
T11 TXE# T7 WR T9 D0-D7 T7 T8 T9 T10 T11 T12 WR Active Pulse Width WR to WR Pre-Charge Time Data Setup Time Before WR Inactive Data Hold Time from WR Inactive WR inactive to TXE# TXE# inactive after RD cycle 10 5 80 50 50 T10
T12
T8
ns ns 20 ns ns 25 ns ns
Device Function
A processor can use the status lines TXE# and RXF# in either a polled or interrupt manner. The TXE# line will go active LOW indicating that there is room available in the 384 bytes transmit buffer for the processor to place another byte for transmission over the USB bus. The RXF# line will go active LOW when there is at least one byte available in the 128 byte FIFO for the processor to read. To write data into the transmit FIFO, the following procedure should be used: With the WRITE line LOW, the processor places the data on lines D0-D7. The processor then strobes the WRITE line by bringing it HIGH for a minimum of 50 ns, and then completes the cycle by bringing the WRITE line back LOW. To read data from the receive FIFO, the processor drives the RD# line LOW. After a maximum time of 30 ns, valid data will be driven on lines D0-D7. The processor reads the data and then drives the RD# line back inactive HIGH. For USB powered controls, USB power would be fed into Pin 22. The filtered output provided at Pin 23 would then be tied to Pin 24 (Vcc). This power (+5volts) can be used to power other circuits in the design, up to the maximum current draw per USB device. For USB specifications see: www.usb.org/developers. For System powered controls, +5 volts can be directly fed into Pin 24. Pins 22-23 are left unconnected. Alternatively system power can be fed into Pin 22. Pin 23 would then be tied to Pin 24 for extra system power filtering. In this case USB power is never connected to the device. USB power and alternate System power sources should not be tied together, except for common grounding (GND). The USB245 is a `slave' or `peripheral' device to a `master' or `host' USB controller such as a PC running Windows 98/2000. The host must have appropriate drivers running to access the USB245. Drivers are available for Windows and Mac Systems.
Addition Information
USB Cable color codes: Red 5 Volts, Black GND, Green DP, White DM
Schematic Usage
See appendix for a simple example using the USB245 with the Ubicom SX-28.
Pin Orientation
Pin 1 Vcc
GND
(version 1.0)
Software Drivers Supplied & Supported by: Future Technology Devices International Ltd. (FTDI). http://www.ftdichip.com
The Following is a sample `C' that reads a character from the USB and writes it back out.
#include #include #define #define #define #define TXEn WRITE READn RXFn PORTA.3 PORTA.2 PORTA.1 PORTA.0 // // // // INPUT OUTPUT OUTPUT INPUT
#pragma FUSE = FOSC_HS2 & TURBO & WDTD #pragma FUSEX = EXTEND unsigned char byte; /*--------------------------------------------------------------------------*/ /* */ /*--------------------------------------------------------------------------*/ void send_byte() { DDR(PORTC,0x00); // make PORTC output WRITE=1; NOP(); PORTC=byte; NOP(); WRITE=0; DDR(PORTC,0xFF); // now make PORTC input } /*--------------------------------------------------------------------------*/ /* */ /*--------------------------------------------------------------------------*/ void read_byte() { READn=0; NOP(); byte=PORTC; NOP(); READn=1; } /*--------------------------------------------------------------------------*/ /* */ /*--------------------------------------------------------------------------*/ void main() { OPTION(RTW|RTE_D|PSA); // start with RTC int disabled DDR(PORTC,0xFF); DDR(PORTB,0xFF); DDR(PORTA,0xF9); WRITE=0; READn=1; while (1) {if (RXFn == 0) {read_byte(); send_byte(); } } } // USB Data Port // all inputs // USB Status lines // Initialize control // Outputs Here // // // // Loop forever Is there a character available Yes, so get it and send it back out
Setup and running. Place the USB device in an empty breadboard, noting proper pin orientation. If you are using the USB adapter cable, while it is NOT plugged into a master or PC, plug the proper end into the breadboard next to the USB245 so that the pin with the Red wire connects to USB245 pin 22, and the pin with the black wire connects to pin 19. Place a jumper wire between pins 22 & 23 of the USB245 on the breadboard. At this point only the top-right 6 pins of the USB245 will be attached. With nothing else attached to the module, except as noted above, now plug the other end of the cable into the PC. It should recognize a new USB device a start searching for drivers. When it
asks for the drivers, put the floppy disk sent with the USB245 into the computer's floppy drive and tell the setup routine which drive you placed it into (usually A:). After it has completed setup, you can find the COM port the USB245 has been assigned, by clicking on: Start Settings Control Panel, then double click the System Icon Device Manager Ports (COM &LPT). Here you should see: USB Serial Port (COMn), where n is the COM port assigned. Now that it has been found, unplug the USB cable from the PC. Never unplug the cable from the USB245 end, while the other end is plugged into a PC or USB master.. Wire the 8 data lines and 4 status lines to your preprogrammed microcontroller. You can use the 5V supply from pin 24, and the GND from pin 12 for you microcontroller. Do NOT tie another 5V source to the USB 5V source. RESET# is also available if needed. Plug the USB cable back into the PC. The PC should now search for and find the proper driver software. The PC may `freeze' for about 25 seconds while the software is loaded. The chipset & driver manufacturer explains that this is normal. If the example program listed above was downloaded to your embedded processor, you should be able to open a COM program like PCPlus, choose the correct COM Port, and start typing in the data entry area and see you characters show up on the screen. If they show up twice, go to half-duplex mode. A very simple Basic program USB VAR BYTE REM REM REM REM REM REM REM REM REM REM REM REM REM REM REM A Place to store the character I/O 0-7 used for DATA I/O 8 used for WRITE SIGNAL, Start LOW I/O 9 used for READ SIGNAL, Start HIGH I/O 10 used for RXF# input TXE IS NOT CHECKED IF RXF is LOW, there is a char available make the READ line active LOW read the character deactivate the READ line set PORT for OUTPUT strobe the WRITE line HIGH output the character bring the strobe back LOW LOW set PORT for INPUT
LOW 8 HIGH 9
10 IF IN10 = 0 THEN LOW 9 USB=INL HIGH 9 DIRL=%11111111 HIGH 8 OUTL=USB LOW 8 DIRL=%00000000 END GOTO 10
1
2 CR1 20 MHz Resonator 1
3
4
SX28
VCC D C1 VCC U1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 GND C GND RESET# RTCC OSC1 VCC OSC2 VCC RC7 RA0 RC6 RA1 RC5 RA2 RC4 RA3 RC3 RB0 RC2 RB1 RC1 RB2 RC0 RB3 RB7 RB4 RB6 GND RB5 SX28AX-SS 28 27 26 25 24 23 22 21 20 19 18 17 16 15
RESET# OSC1 OSC2 D7 D6 D5 D4 D3 D2 D1 D0
3
2
D VCC U2 4 5 6 7 8 9 10 11
READ# WRITE RXF# TXE# RESET#
GND
GND
READ# WRITE RXF# TXE#
SD7 SD6 SD5 SD4 SD3 SD2 SD1 SD0
VCC FILTER_VCC USB_VCC DM DP RXCLK
24 23 22 21 20 13 GND
J1 RED 1 WHITE 2 GREEN 3 BLACK 4 VCC0 DATAODATA0+ GND0 GND
5
16 17 14 18 15
READ# WRITE RXF# TXE# RESET# USB245 GND GND
PORTB on SX28 for other I/O
19 12 C GND
BS2-IC
U3 U4 BS2-IC 1 2 3 4 5 6 7 8 9 10 11 12 SOUT VIN SIN VSS ATN RES# VSS VDD P0 P15 P1 P14 P2 P13 P3 P12 P4 P11 P5 P10 P6 P9 P7 P8 24 23 22 21 20 19 18 17 16 15 14 13
GND VCC P7 P6 P5 P4 P3 P2 P1 P0 READ# WRITE RXF# TXE#
VCC 4 5 6 7 8 9 10 11 16 17 14 18 15 SD7 SD6 SD5 SD4 SD3 SD2 SD1 SD0 VCC FILTER_VCC USB_VCC DM DP RXCLK 24 23 22 21 20 13 GND J1 RED WHITE GREEN BLACK 1 2 3 4 VCC0 DATAODATA0+ GND0 GND B 5
B
GND P0 P1 P2 P3 P4 P5 P6 P7
TXE# RXF# READ# WRITE
READ# WRITE RXF# TXE# RESET# USB245 GND GND
19 12 GND
A
Title Size A Date: File: 1 2 3
USB245 Demo Schematic
Number 5-Dec-2002 C:\Designs\stamps.ddb Sheet of Drawn By: 4 Revision
A


▲Up To Search▲   

 
Price & Availability of USB245

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X